package org.zjx.common.service;

import org.zjx.common.entity.Address;
import org.zjx.common.entity.Inventor;
import org.zjx.common.entity.Quest;
import org.zjx.common.entity.state.PetAttributes;
import org.zjx.common.entity.state.RoleAttributes;
import org.zjx.state.TeamState;

import java.util.List;

public interface UpdateStateService {

    //更新人物信息
    boolean updatePlayer(String playerId, RoleAttributes roleAttributes);

    //更新人物坐标
    boolean updateAddress(String playerId, Address address);

    //更新宠物信息
    boolean updatePet(String playerId, PetAttributes petAttributes);

    //更新道具信息  0 道具栏 1 行囊栏 2 任务栏  3 装备栏 4 饰品栏 5 法宝栏
    boolean updateInventor(String playerId,int barSort, List<Inventor> inventors);

    //更新任务
    boolean updateQuestAttributes(String playerId, List<Quest> quests);

    //更新战斗状态
    boolean updateBattle(String playerId, boolean battle);

    boolean updateTeam(String playerId, String teamId,int sort,boolean leader,boolean inTeam);
}
